#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# result = str('%.2f' % r)
# print(result)
# # print('%.2f' % 3.1415926)

# print('Hello, {1}, 成绩提升了 {0:.1f}%'.format(2.3333, 17.125))

# print('%2d-%02d' % (3, 1))
# print('%.2f' % 3.1415926)

# print('Age: %s. Gender: %s' % (25, True))

# Print('growth rate: %d %%' % 7)

# r = 2.5
# s = 3.14 * r ** 2
# print(f'The area of a circle with radius {r} is {s:.2f}')

s1 = 72
s2 = 85
r = (s2 - s1) / s1 * 100
print('小明的成绩提高了%.1f%%' % r)
print('小明的成绩提高了{0:.1f}%'.format(r))
print(f'小明的成绩提高了{r:.1f}%')
